package com.bao.work.work03;

import java.util.HashMap;
import java.util.Map;

/**
 * @author baoye
 * @date 2024-08-01/20:11
 */
public class Test {
    public static void main(String[] args) {
        String[] strings={"aa@sohu.com","bb@163.com","cc@sina.com"};
        Map<String,String> map =new HashMap<>();
        for (String string : strings) {
            String[] split = string.split("@");
            map.put(split[0],split[1]);
        }
        System.out.println(map);
    }
}
